package com.youpai.platform.user.service.mapper;

import com.youpai.platform.user.service.entity.po.VersionInfoPO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface VersionInfoMapper {

    //获取当前请求版本的“是否更新字段”
    VersionInfoPO getForceUpdate(
            @Param("appId") Integer appId,
            @Param("versionNumber") String versionNumber,
            @Param("platform") Integer platform);

    //获取最新的版本链接、升级内容和对应平台下载地址
    VersionInfoPO getNewLinkAndContent(@Param("platform") Integer platform);

}
